<script>
	(function() {
		var f =function () {
			var mainBoxHeight = $("#num").parent().height();
			var numHeight = $("#num").height();
			$("#detail").css("height", mainBoxHeight - numHeight-2);
		}
		$(window).resize(f);
		f();
	})();
</script>

<div class="conternavb" id="num">
	<span><input name="提交" type="submit" value="查询" class="ptbtn" /></span>
	<span><input name="提交" type="submit" value="查询" class="ptbtn" /></span>
	<span><input name="提交" type="submit" value="查询" class="ptbtn" /></span>
	<span><input name="提交" type="submit" value="查询" class="ptbtn" /></span>
</div>
<div class="detailed" id="detail">123</div>
